package org.ahuanlien.crm.mapper;

import org.ahuanlien.crm.domain.Client;
import org.ahuanlien.crm.query.ClientQueryObject;
import org.ahuanlien.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClientMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Client record);

    Client selectByPrimaryKey(Long id);

    List<Client> selectAll();

    int updateByPrimaryKey(Client record);

    int queryForCount(QueryObject qo);

    List<Client> queryForList(QueryObject qo);

	void ChangeState(@Param("clientId") Long clientId, @Param("state") Integer state);

	List<Client> queryForListResource(ClientQueryObject qo);

	int queryForCountResource(ClientQueryObject qo);

	void updateByTemOrder(Client holder);

	void updateChargeEmp(@Param("clientId") Long clientId, @Param("username") String username);
}